//
//  AFHTTPSessionManager+XMGManager.m
//  码哥课堂
//
//  Created by yz on 2016/11/15.
//  Copyright © 2016年 yz. All rights reserved.
//

#import "AFHTTPSessionManager+XMGManager.h"

@implementation AFHTTPSessionManager (XMGManager)
+ (instancetype)xmg_manager
{
    AFHTTPSessionManager *mgr = [AFHTTPSessionManager manager];
    
    AFJSONResponseSerializer *rsp = [AFJSONResponseSerializer serializer];
    
    rsp.acceptableContentTypes =  [NSSet setWithObjects:@"application/json", @"text/json", @"text/javascript",@"text/html",@"text/plain", nil];
    mgr.responseSerializer = rsp;
    
    return mgr;
    
}
@end
